package com.org.service.impl;

import com.org.model.Administrator;
import com.org.mapper.AdministratorMapper;
import com.org.model.User;
import com.org.service.IAdministratorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author test
 * @since 2021-06-05
 */
@Service
public class AdministratorServiceImpl extends ServiceImpl<AdministratorMapper, Administrator> implements IAdministratorService {
    @Autowired
    private IAdministratorService service;
    @Autowired
    private AdministratorMapper mapper;

    @Override
    public Administrator getByAccount(String adminname) {
        return mapper.getByAccount(adminname);
    }

    @Override
    public Administrator getAdminByName(String name) {
        return mapper.getAdminByName(name);
    }
}
